<h1>Files List</h1>

<table>
  <thead>
    <tr>
      <th>Id</th>
      <th>Name</th>
      <th>Name for users</th>
      <th>Description</th>
      <th>Document</th>
      <th>Last download</th>
      <th>Created at</th>
      <th>Updated at</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($files as $file): ?>
    <tr>
      <td><a href="<?php echo url_for('file/show?id='.$file->getId()) ?>"><?php echo $file->getId() ?></a></td>
      <td><?php echo $file->getName() ?></td>
      <td><?php echo $file->getNameForUsers() ?></td>
      <td><?php echo $file->getDescription() ?></td>
      <td><?php echo $file->getDocumentId() ?></td>
      <td><?php echo $file->getUser() ?></td>
      <td><?php echo $file->getCreatedAt() ?></td>
      <td><?php echo $file->getUpdatedAt() ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

  <a href="<?php echo url_for('file/new') ?>">New</a>
